Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unsuccessful token login logged as error #35007

Merged

Conversation

ChristophWurst
Copy link
Member

The condition of a non-existent login token can happen for concurrent requests. Admins can not do anything about this. So this is to be expected to happen occasionally. This event is only bad if none of the requests is able to re-acquire a session. Luckily this happens rarely.

If a login loop persists an admin can still lower the log level to find this info. But a default error log level will no longer write those infos about the failed cookie login of one request.

This is a refinement of the logging added with #33772.

Ref #33919

The condition of a non-existent login token can happen for concurrent
requests. Admins can not do anything about this. So this is to be
expected to happen occasionally. This event is only bad if none of the
requests is able to re-acquire a session. Luckily this happens rarely.

If a login loop persists an admin can still lower the log level to find
this info. But a default error log level will no longer write those
infos about the failed cookie login of one request.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst
Copy link
Member Author

/backport to stable25

@ChristophWurst
Copy link
Member Author

/backport to stable24

Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@szaimen
Copy link
Contributor

szaimen commented Nov 7, 2022

/backport to stable23

@ChristophWurst ChristophWurst merged commit c8c27ea into master Nov 7, 2022
@ChristophWurst ChristophWurst deleted the fix/lower-logging-level-user-session-cookie-login branch November 7, 2022 15:35
@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

@szaimen
Copy link
Contributor

szaimen commented Nov 7, 2022

Is this new in 25?

@backportbot-nextcloud
Copy link

The backport to stable23 failed. Please do this backport manually.

@nickvergessen
Copy link
Member

Yes, our company instance log is full of it.

@ChristophWurst
Copy link
Member Author

/backport to stable24

@ChristophWurst
Copy link
Member Author

/backport to stable23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants